package com.xrit.sunnyday.service;

import com.xrit.sunnyday.pojo.Permission;
import com.xrit.sunnyday.common.PageResult;
import com.xrit.sunnyday.common.QueryPageBean;
import com.xrit.sunnyday.common.SunnydayException;

public interface PermissionService {
    /*
    查询所有权限并分页
     */
    PageResult findPage(QueryPageBean queryPageBean);
    /*
    添加
     */
    void add(Permission permission);
    /*
    根据id删除权限
     */
    void deleteById(Integer id) throws SunnydayException;
    /*
    根据id查询单个权限
     */
    Permission findById(Integer id);
    /*
    根据id修改权限
     */
    void update(Permission permission);
}
